package com.ruoyi.recycle.vo;

import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;
import java.util.stream.Collectors;

@Accessors(chain = true)
public class ShopAttractVO implements Serializable {
    private static final long serialVersionUID = 7459830225367821339L;

    private Long shopId;

    private List<Long> clientIds;

    public ShopAttractVO(Long shopId, List<String> clientIds) {
        this.shopId = shopId;
        this.clientIds = clientIds.stream().map(Long::parseLong).collect(Collectors.toList());
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public List<Long> getClientIds() {
        return clientIds;
    }

    public void setClientIds(List<String> clientIds) {
        this.clientIds = clientIds.stream().map(Long::parseLong).collect(Collectors.toList());
    }
}
